ac1f9c790adf9fab051ce1f5b3bcea1deb3e6fee,framework/src/org/apache/cordova/CordovaActivity.java,CordovaActivity,onReceivedError,#number#String#String#,352

Before Change



        // If errorUrl specified, then load it
        final String errorUrl = preferences.getString("errorUrl", null);
        if ((errorUrl != null) && (errorUrl.startsWith("file://") || internalWhitelist.isUrlWhiteListed(errorUrl)) && (!failingUrl.equals(errorUrl))) {
            // Load URL on UI thread
            me.runOnUiThread(new Runnable() {
                public void run() {

After Change


        CordovaUriHelper helper = new CordovaUriHelper(this.cordovaInterface, appView);
        if ((errorUrl != null) &&
            (!failingUrl.equals(errorUrl)) &&
            (appView != null && helper.shouldAllowNavigation(errorUrl))
           ) {
            // Load URL on UI thread
            me.runOnUiThread(new Runnable() {